<template>
  <el-container>
    <el-main>
      <el-form ref="updateForm" size="small" :model="parmsValue" label-width="160px" :rules="form.rules" class="middle-form">
        <el-row>
          <el-col :span="12">
            <!--            <el-form-item prop="superior_prod_name" label="父产品名称">-->
            <!--              <el-select v-model="parmsValue.superior_prod_name" :clearable="true" :disabled="detailMod">-->
            <!--                <el-option v-for="(item,index) in dict.superior_prod_name" :key="index" :value="index" :label="item" />-->
            <!--              </el-select>-->
            <!--            </el-form-item>-->
          </el-col>
          <el-col :span="12">
            <el-form-item prop="pmod_code" label="产品模板">
              <el-select v-model="parmsValue.pmod_code" :clearable="true" :disabled="detailMod" @focus="addpmod" @change="inputonchange">
                <el-option v-for="(item,index) in dict.getProdModelBase" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="prod_plan" label="发行计划">
              <el-select v-model="parmsValue.prod_plan" :clearable="true" :disabled="detailMod" @change="plan_change">
                <el-option v-for="(item,index) in dict.getProdPubPlan" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="prod_doc_templates" label="产品文档">
              <el-select v-model="parmsValue.prod_doc_templates" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.QUERYTEMPBYTEMPTYPE" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="t8_prod_series_id" label="产品系列">
              <el-select v-model="parmsValue.t8_prod_series_id" :clearable="true" :disabled="detailMod" @change="seriesChange">
                <el-option v-for="(item,index) in dict.getProdSeries" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="trustee_name" label="托管行名称">
              <el-select v-model="parmsValue.trustee_name" :clearable="true" :disabled="detailMod" @focus="getTrustee" @change="onTrusteeNamechange">
                <el-option v-for="(item,index) in dict.selectTrusteeInfo" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col v-show="false" :span="12">
            <el-form-item prop="trustee_mod" label="托管模式">
              <el-select v-model="parmsValue.trustee_mod" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.trustee_mod" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="is_online" label="是否线上产品">
              <el-select v-model="parmsValue.is_online" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_1yes0no" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="t8_sys_portfol_id" label="产品组合名称">
              <el-select v-model="parmsValue.t8_sys_portfol_id" :clearable="true" :disabled="detailMod" @change="check_bz">
                <el-option v-for="(item,index) in dict.prodinfoES_002" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="prod_mod" label="产品模式">
              <el-select v-model="parmsValue.prod_mod" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_prod_model" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="is_cycle" label="是否为客户周期型">
              <el-select v-model="parmsValue.is_cycle" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_1yes0no" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="is_structprod" label="是否结构化(分级)产品">
              <el-select v-model="parmsValue.is_structprod" :clearable="true" :disabled="detailMod" @change="is_structprod_change">
                <el-option v-for="(item,index) in dict.t8_1yes0no" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="is_structdeposit" label="是否结构性存款">
              <el-select v-model="parmsValue.is_structdeposit" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_1yes0no" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="father_type" label="父子型产品类别">
              <el-select v-model="parmsValue.father_type" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_prod_father_type" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="level_type" label="层级类别">
              <el-select v-model="parmsValue.level_type" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_level_type" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="check_inon" label="产品登记编码(中债)">
              <el-input v-model="parmsValue.check_inon" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="prod_code" label="产品代码">
              <el-input v-model="parmsValue.prod_code" :clearable="true" :disabled="detailMod" @blur="changebiao" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="prod_name" label="产品名称(中债)">
              <el-input v-model="parmsValue.prod_name" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="prod_type" label="产品类型">
              <el-select v-model="parmsValue.prod_type" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_no_structprod_type" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="source_value_bank" label="银行间债券估值来源">
              <el-select v-model="parmsValue.source_value_bank" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_source_value_bank" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="source_value_exchange" label="交易所债券估值来源">
              <el-select v-model="parmsValue.source_value_exchange" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_source_value_exchange" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="issu_ccy" label="募集币种(中债)">
              <el-select v-model="parmsValue.issu_ccy" :clearable="true" :disabled="detailMod" @change="click_check_bz">
                <el-option v-for="(item,index) in dict.prodinfoES_006" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="invest_cuy" label="投资币种">
              <el-select v-model="parmsValue.invest_cuy" multiple :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.prodinfoES_006" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="risk_lev" label="产品风险等级(中债)">
              <el-select v-model="parmsValue.risk_lev" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_prod_risk_level" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="carry_mod" label="结转方式">
              <el-select v-model="parmsValue.carry_mod" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_prod_carry_mod" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="income_type" label="产品收益类型(中债)">
              <el-select v-model="parmsValue.income_type" :clearable="true" :disabled="detailMod" @change="incomeTypeChange">
                <el-option v-for="(item,index) in dict.t8_income_attr" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="acct_mod" label="核算方式">
              <el-select v-model="parmsValue.acct_mod" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_busi_account_type" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="expe_scale_w" label="计划募集金额">
              <el-input v-model.number="parmsValue.expe_scale_w" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="actual_scale_w" label="实际规模">
              <el-input v-model="parmsValue.actual_scale_w" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="sale_area" label="产品销售区域">
              <el-select v-model="parmsValue.sale_area" multiple :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_sales_area" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="basedays" label="计息基数">
              <el-select v-model="parmsValue.basedays" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.t8_intr_base" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="deprt_for_risk" label="风险资产承担部门信息">
              <el-input v-model="parmsValue.deprt_for_risk" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="min_rate" label="预计客户最低年收益率(%)(中债)">
              <el-input v-model="parmsValue.min_rate" :clearable="true" :disabled="detailMod" @change="hasDescription" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="max_rate" label="预计客户最高年收益率(%)(中债)">
              <el-input v-model.number="parmsValue.max_rate" max="100" :clearable="true" :disabled="detailMod" @change="hasDescription" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="expe_rate" label="平均预计客户年收益率(%)(中债)">
              <el-input v-model.number="parmsValue.expe_rate" :clearable="true" :disabled="detailMod" @change="hasDescription" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="yield_banding_desc" label="收益率分档情况说明">
              <el-input v-model="parmsValue.yield_banding_desc" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="sharebonus_type" label="分红方式">
              <el-select v-model="parmsValue.sharebonus_type" multiple :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.def_div_method" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="min_size" label="发行规模下限(万元)">
              <el-input v-model.number="parmsValue.min_size" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="threshold1" label="偏离阈值一">
              <el-input v-model.number="parmsValue.threshold1" min="0" max="100" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="threshold2" label="偏离阈值二">
              <el-input v-model.number="parmsValue.threshold2" min="0" max="100" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="charge_type" label="收费方式">
              <el-select v-model="parmsValue.charge_type" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.charge_type" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="pay_type" label="扣费方式">
              <el-select v-model="parmsValue.pay_type" :clearable="true" :disabled="detailMod">
                <el-option v-for="(item,index) in dict.pay_type" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="big_rate" label="巨额赎回比例(%)">
              <el-input v-model.number="parmsValue.big_rate" min="0" max="100" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="is_rens_rate" label="是否有认购费">
              <el-select v-model="parmsValue.is_rens_rate" :clearable="true" :disabled="detailMod" @change="renschange">
                <el-option v-for="(item,index) in dict.is_rens_rate" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="rens_rate" label="认购费率(%)">
              <el-input v-model.number="parmsValue.rens_rate" min="0" max="100" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="is_subs_rate" label="是否有申购费">
              <el-select v-model="parmsValue.is_subs_rate" :clearable="true" :disabled="detailMod" @change="subschange">
                <el-option v-for="(item,index) in dict.is_subs_rate" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="subs_rate" label="申购费率">
              <el-input v-model="parmsValue.subs_rate" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="is_redeem_rate" label="是否有赎回费">
              <el-select v-model="parmsValue.is_redeem_rate" :clearable="true" :disabled="detailMod" @change="redeemchange">
                <el-option v-for="(item,index) in dict.is_redeem_rate" :key="index" :value="index" :label="item" />
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item prop="redeem_rate" label="赎回费率">
              <el-input v-model="parmsValue.redeem_rate" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="remark" label="备注">
              <el-input v-model="parmsValue.remark" type="areatext" :clearable="true" :disabled="detailMod" />
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-main>
  </el-container>
</template>

<script>
  import { formItems } from '@/utils/formItems'
  import request from '@/utils/request'
  import axios from 'axios'

  export default {
    props: {
      editMod: {
        type: String,
        default: formItems.ADD
      },
      parmsValue: {
        type: Object,
        default: () => {
          return {
            superior_prod_name: '',
            pmod_code: '',
            prod_plan: '',
            prod_doc_templates: '',
            t8_prod_series_id: '',
            trustee_name: '',
            trustee_mod: '2',
            is_online: '',
            t8_sys_portfol_id: '',
            prod_mod: '',
            is_cycle: '',
            is_structprod: '',
            is_structdeposit: '',
            father_type: '',
            level_type: '',
            check_inon: '',
            prod_code: '',
            prod_name: '',
            prod_type: '',
            source_value_bank: '',
            source_value_exchange: '',
            issu_ccy: '',
            invest_cuy: '',
            risk_lev: '',
            carry_mod: '',
            income_type: '',
            acct_mod: '',
            expe_scale_w: '',
            actual_scale_w: '',
            sale_area: '',
            basedays: '',
            deprt_for_risk: '',
            min_rate: '',
            max_rate: '',
            expe_rate: '',
            yield_banding_desc: '',
            sharebonus_type: '',
            min_size: '',
            threshold1: '',
            threshold2: '',
            charge_type: '',
            pay_type: '',
            big_rate: '',
            is_rens_rate: '',
            rens_rate: '',
            is_subs_rate: '',
            subs_rate: '',
            is_redeem_rate: '',
            redeem_rate: '',
            remark: ''
          }
        }
      }
    },
    data() {
      return {
        dict: {
          getProdModelBase: {},
          trustee_mod: {
            '1': '新模式',
            '2': '旧模式'
          },
          t8_1yes0no: {},
          charge_type: {
            0: '前端收费'
          },
          pay_type: {
            0: '内扣法'
          },
          is_rens_rate: {
            0: '否',
            1: '是'
          },
          is_subs_rate: {
            0: '否',
            1: '是'
          },
          is_redeem_rate: {
            0: '否',
            1: '是'
          },
          t8_prod_father_type: {},
          t8_level_type: {},
          t8_no_structprod_type: {},
          t8_source_value_bank: {},
          t8_source_value_exchange: {},
          t8_prod_risk_level: {},
          t8_prod_carry_mod: {},
          t8_income_attr: {},
          t8_busi_account_type: {},
          t8_sales_area: {},
          t8_intr_base: {},
          def_div_method: {},
          getProdPubPlan: {},
          QUERYTEMPBYTEMPTYPE: {},
          getProdSeries: {},
          selectTrusteeInfo: {},
          prodinfoES_002: {},
          prodinfoES_006: {}
        },
        form: {
          rules: {
            superior_prod_name: [{ required: true, message: '父产品名称必填', trigger: 'change' }],
            pmod_code: [{ required: true, message: '产品模板必填', trigger: 'change' }],
            prod_plan: [{ required: true, message: '发行计划必填', trigger: 'change' }],
            prod_doc_templates: [{ required: true, message: '产品文档必填', trigger: 'change' }],
            t8_prod_series_id: [{ required: true, message: '产品系列必填', trigger: 'change' }],
            trustee_name: [{ required: true, message: '托管行名称必填', trigger: 'change' }],
            trustee_mod: [{ required: true, message: '托管模式必填', trigger: 'change' }],
            is_online: [{ required: true, message: '是否线上产品必填', trigger: 'change' }],
            t8_sys_portfol_id: [{ required: true, message: '产品组合名称必填', trigger: 'change' }],
            prod_mod: [{ required: true, message: '产品模式必填', trigger: 'change' }],
            is_cycle: [{ required: true, message: '是否为客户周期型必填', trigger: 'change' }],
            is_structprod: [{ required: true, message: '是否结构化必填', trigger: 'change' }],
            is_structdeposit: [{ required: true, message: '是否结构性存款必填', trigger: 'change' }],
            father_type: [{ required: true, message: '父子型产品类别必填', trigger: 'change' }],
            level_type: [{ required: true, message: '层级类别必填', trigger: 'change' }],
            check_inon: [{ required: true, message: '产品登记编码必填', trigger: 'change' }],
            prod_code: [{ required: true, message: '产品代码必填', trigger: 'change' }],
            prod_name: [{ required: true, message: '产品名称必填', trigger: 'change' }],
            prod_type: [{ required: true, message: '产品类型必填', trigger: 'change' }],
            source_value_bank: [{ required: true, message: '银行间债券估值来源必填', trigger: 'change' }],
            source_value_exchange: [{ required: true, message: '交易所债券估值来源必填', trigger: 'change' }],
            issu_ccy: [{ required: true, message: '募集币种必填', trigger: 'change' }],
            invest_cuy: [{ required: true, message: '投资币种必填', trigger: 'change' }],
            risk_lev: [{ required: true, message: '产品风险等级必填', trigger: 'change' }],
            carry_mod: [{ required: true, message: '结转方式必填', trigger: 'change' }],
            income_type: [{ required: true, message: '产品收益类型必填', trigger: 'change' }],
            acct_mod: [{ required: true, message: '核算方式必填', trigger: 'change' }],
            expe_scale_w: [{ required: true, message: '计划募集金额必填', trigger: 'change' }],
            actual_scale_w: [{ required: true, message: '实际规模必填', trigger: 'change' }],
            sale_area: [{ required: true, message: '产品销售区域必填', trigger: 'change' }],
            basedays: [{ required: true, message: '计息基数必填', trigger: 'change' }],
            deprt_for_risk: [{ required: true, message: '风险资产承担部门信息必填', trigger: 'change' }],
            min_rate: [{ required: true, message: '预计客户最低年收益率必填', trigger: 'change' }],
            max_rate: [{ required: true, message: '预计客户最高年收益率必填', trigger: 'change' }],
            expe_rate: [{ required: true, message: '平均预计客户年收益率必填', trigger: 'change' }],
            yield_banding_desc: [{ required: true, message: '收益率分档情况说明必填', trigger: 'change' }],
            sharebonus_type: [{ required: true, message: '分红方式必填', trigger: 'change' }],
            min_size: [{ required: true, message: '发行规模下限必填', trigger: 'change' }],
            threshold1: [{ required: true, message: '偏离阈值一必填', trigger: 'change' }],
            threshold2: [{ required: true, message: '偏离阈值二必填', trigger: 'change' }],
            charge_type: [{ required: true, message: '收费方式必填', trigger: 'change' }],
            pay_type: [{ required: true, message: '扣费方式必填', trigger: 'change' }],
            big_rate: [{ required: true, message: '巨额赎回比例必填', trigger: 'change' }],
            is_rens_rate: [{ required: true, message: '是否有认购费必填', trigger: 'change' }],
            rens_rate: [{ required: true, message: '认购费率必填', trigger: 'change' }],
            is_subs_rate: [{ required: true, message: '是否有申购费必填', trigger: 'change' }],
            subs_rate: [{ required: true, message: '申购费率必填', trigger: 'change' }],
            is_redeem_rate: [{ required: true, message: '是否有赎回费必填', trigger: 'change' }],
            redeem_rate: [{ required: true, message: '赎回费率必填', trigger: 'change' }],
            remark: [{ required: true, message: '备注必填', trigger: 'change' }]
          }
        }
      }
    },
    computed: {
      updateMod() {
        return this.editMod === 'update'
      },
      detailMod() {
        return this.editMod === 'detail'
      },
      addMod() {
        return this.editMod === 'add'
      }
    },
    // 生命周期开始
    activated() {
      this.init()
    },
    // 生命周期结束
    methods: {
      addpmod() {

      },
      inputonchange() {

      },
      plan_change() {

      },
      seriesChange() {

      },
      check_bz() {

      },
      /**
       *
       * 初始化数据，用于数据字典的获取，页面进入时调用一次，常为保持请求同步而在数据字典请求回调后请求表格数据等
       *
       **/
      init() {
        /**
         * dict类型数据字典获取
         **/
        const dictReq = []
        const dicts = ['t8_1yes0no', 't8_prod_model', 't8_prod_father_type', 't8_level_type',
                       't8_no_structprod_type', 't8_source_value_bank', 't8_source_value_exchange',
                       't8_prod_risk_level', 't8_prod_carry_mod', 't8_income_attr', 't8_busi_account_type',
                       't8_sales_area', 't8_intr_base', 'def_div_method']
        dicts.forEach(key => dictReq.push(request({ url: 'system/base/dict/' + key + '.json', method: 'post', loading: true })))
        axios.all(dictReq).then(axios.spread((...item) => {
          for (let i = 0; i < dicts.length; i++) {
            this.dict[name] = item[i]
          }
        }))

        /**
         * exeid类型数据字典获取
         **/
        const exeidReq = []
        const exeids = [
          { service: formItems.PROD, params: { exeid: 'getProdModelBase' }},
          { service: formItems.PROD, params: { exeid: 'getProdPubPlan' }},
          { service: formItems.FILE, params: { exeid: 'QUERYTEMPBYTEMPTYPE', temp_type: 2 }},
          { service: formItems.PROD, params: { exeid: 'getProdSeries' }},
          { service: formItems.ORG, params: { exeid: 'selectTrusteeInfo' }},
          { service: formItems.PROD, params: { exeid: 'prodinfoES_002', port_type: 2 }},
          { service: formItems.PROD, params: { exeid: 'prodinfoES_006' }}
        ]
        exeids.forEach(item => exeidReq.push(request({
          url: '/' + item.service + '/base/comn-query.json', method: 'post', loading: true, params: item.params
        })))
        axios.all(exeidReq).then(axios.spread((...items) => {
          for (let i = 0; i < exeids.length; i++) {
            if (exeids[i].dict) {
              this.dict[exeids[i].dict] = items[i].rows
            } else {
              this.dict[exeids[i].params.exeid] = items[i].rows
            }
          }
        }))
      },
      getTrustee() {

      },
      onTrusteeNamechange() {

      },
      is_structprod_change() {

      },
      changebiao() {

      },
      click_check_bz() {

      },
      incomeTypeChange() {

      },
      hasDescription() {

      },
      renschange() {

      },
      subschange() {

      },
      redeemchange() {

      }
    }
  }
</script>
